import request from '@/utils/request'

// 查询我的授课列表
export function listMyTeacherCourse(query) {
  return request({
    url: '/classroom/MyTeacherCourse/MyTeacherCourse/list',
    method: 'get',
    params: query
  })
}
//selectStudentCourseList
export function selectStudentCourseList(query) {
  return request({
    url: '/classroom/MyTeacherCourse/MyTeacherCourse/selectStudentCourseList',
    method: 'get',
    params: query
  })
}

// 查询我的授课详细
export function getMyTeacherCourse(id) {
  return request({
    url: '/classroom/MyTeacherCourse/MyTeacherCourse/' + id,
    method: 'get'
  })
}

// 新增我的授课
export function addMyTeacherCourse(data) {
  return request({
    url: '/classroom/MyTeacherCourse/MyTeacherCourse',
    method: 'post',
    data: data
  })
}

// 修改我的授课
export function updateMyTeacherCourse(data) {
  return request({
    url: '/classroom/MyTeacherCourse/MyTeacherCourse',
    method: 'put',
    data: data
  })
}

// 删除我的授课
export function delMyTeacherCourse(id) {
  return request({
    url: '/classroom/MyTeacherCourse/MyTeacherCourse/' + id,
    method: 'delete'
  })
}
